import axios, { Response } from "./axios";
import factorySingleClass from "./SingleClass";

class GlobalService {
    link(key: string) {
        return axios.get<Response<string>>(
            `/mediaresourcelib-file-manager/auth/link/nocache?key=${key}`,
        );
    }
}

export default factorySingleClass(GlobalService);
